package com.heima.common.constants;

//这是文章相关的常量类，三个属性分别是加载更多，加载最新和默认标签
//在开发中使用常量类可以避免魔法数字，提高代码可读性，并减少出错的可能性
public class ArticleConstants {
	public static final Short LOADTYPE_LOAD_MORE = 1;
	public static final Short LOADTYPE_LOAD_NEW = 2;
	public static final String DEFAULT_TAG = "__all__";

	//这是用于集成es的常量，指定es模板类操作的主题
	public static final String ARTICLE_ES_SYNC_TOPIC = "article.es.sync.topic";

	public static final Integer HOT_ARTICLE_LIKE_WEIGHT = 3;
	public static final Integer HOT_ARTICLE_COMMENT_WEIGHT = 5;
	public static final Integer HOT_ARTICLE_COLLECTION_WEIGHT = 8;

	public static final String HOT_ARTICLE_FIRST_PAGE = "hot_article_first_page_";

}